package com.coocaa.ops.admin.v1.panel.biz;


import com.coocaa.ops.common.core.biz.panel.entity.PanelBlockRlsEntity;

import java.util.List;

/**
 * @author bjh
 * @description 板块和推荐位关联表-biz层接口
 * @date 2020-06-13 11:06:59
 */
public interface IPanelBlockRlsBiz {

    List<PanelBlockRlsEntity> listPanelBlockRls(Integer panelId, Integer panelVersion);


    /**
     * 删除
     *
     * @param id
     * @param version
     */
    void deleteRls(Integer id, Integer version);

    /**
     * 逻辑删除关联信息
     *
     * @param id
     * @param version
     */
    void logicDelRls(Integer id, Integer version);

    /**
     * 查询推荐位信息
     *
     * @param id
     * @param version
     * @return
     */
    List<Integer> queryBlockIdList(Integer id, Integer version);

    /**
     * 获取推荐位id-分组板块
     * @param subPanelIdList
     * @return
     */
    List<Integer> queryBlockIdListForGroupPanel(List<Integer> subPanelIdList);


}